<template>
  <div class="school">

    <h2>学校名称：{{ name }}</h2>
    <h2>学校地址：{{ address }}</h2>
    <button @click="showName"></button>
  </div>
</template>

<script>
// 引入一个混合
import {mixin} from "../mixin";

export default {
  name: "School",

  mixins: [mixin],
  data() {
    return {
      name: '二完小',
      sex: '男',
      address: "北京"
    }
  }
}
</script>

<style scoped>

</style>